package com.briup.myblog.dao.ext;

import com.briup.myblog.bean.basic.Article;
import com.briup.myblog.bean.basic.BaseUser;
import com.briup.myblog.web.vm.UserUpdateVM;

import java.util.List;

public interface UserMapper {
     void deleteUserById(int id);
     BaseUser findUserById(int id);
     BaseUser selectUserByEmail(String email, int id);
     BaseUser selectUserOnlyByEmail(String email);
     BaseUser selectUserByUserName(String username);
     List<BaseUser> findUserByPageHelper(Integer role,String username);
     void updateUserInfoById(BaseUser baseUser);
     void updateUserIcon(int id,String alterIcon);
     List<BaseUser>selectAllUserByPageHelper();
     List<BaseUser>selectUserByPageHelperWithUsername(String username);
     List<BaseUser>selectUserByPageHelperWithRole(Integer role);
}
